//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Detroit Youth Choir','Aretha Franklin Amphitheatre','Detroit, MI','Friday','5/31/2024','7:00 PM','6254845','Detroit-Youth-Choir-5-31-2024'],['Lalah Hathaway','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','6/5/2024','7:30 PM','6342869','Lalah-Hathaway-6-5-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','6/12/2024','7:30 PM','6110705','Jazzy-Nights-6-12-2024'],['Juvenile','Aretha Franklin Amphitheatre','Detroit, MI','Saturday','6/15/2024','8:00 PM','6354402','Juvenile-6-15-2024'],['The Isley Brothers','Aretha Franklin Amphitheatre','Detroit, MI','Sunday','6/16/2024','8:00 PM','6346926','The-Isley-Brothers-6-16-2024'],['Spyro Gyra','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','6/19/2024','7:30 PM','6147276','Spyro-Gyra-6-19-2024'],['Robert Glasper','Aretha Franklin Amphitheatre','Detroit, MI','Friday','6/21/2024','8:00 PM','6351410','Robert-Glasper-6-21-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','6/26/2024','7:30 PM','6110706','Jazzy-Nights-6-26-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','7/3/2024','7:30 PM','6110707','Jazzy-Nights-7-3-2024'],['Damien Escobar ','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','7/10/2024','7:30 PM','6110135','Damien-Escobar--7-10-2024'],['Peabo Bryson','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','7/17/2024','7:30 PM','6110621','Peabo-Bryson-7-17-2024'],['Southern Soul on the River: King George','Aretha Franklin Amphitheatre','Detroit, MI','Saturday','7/20/2024','8:00 PM','6379492','Southern-Soul-on-the-River--King-George-7-20-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','7/24/2024','7:30 PM','6110708','Jazzy-Nights-7-24-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','7/31/2024','7:30 PM','6110709','Jazzy-Nights-7-31-2024'],['Kem','Aretha Franklin Amphitheatre','Detroit, MI','Friday','8/2/2024','8:00 PM','6110134','Kem-8-2-2024'],['Gerald Albright','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','8/7/2024','7:30 PM','6110692','Gerald-Albright-8-7-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','8/14/2024','7:30 PM','6110710','Jazzy-Nights-8-14-2024'],['Kirk Whalum','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','8/21/2024','7:30 PM','6110694','Kirk-Whalum-8-21-2024'],['King Gizzard and The Lizard Wizard','Aretha Franklin Amphitheatre','Detroit, MI','Friday','8/23/2024','7:30 PM','6066165','King-Gizzard-and-The-Lizard-Wizard-8-23-2024'],['Jazzy Nights','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','8/28/2024','7:30 PM','6110711','Jazzy-Nights-8-28-2024'],['After 7','Aretha Franklin Amphitheatre','Detroit, MI','Wednesday','9/4/2024','7:30 PM','6111972','After-7-9-4-2024']],'Chene Park','http://www.ticketnetwork.com/ticket/Chene-Park-events.aspx');